import http from "@/utils/http";

// ### 上传二次元头像
export function UploadManhuaAvatar(file: File | Blob) {
    console.log("UploadManhuaAvatar is -", file)
    const formData = new FormData()
    formData.append("file", file)
    return http.post(`/api/bactroban-bus/animeHead`, formData).then<{
        img: string
        time: number
    }>(res => res?.data);
}

// ### 获取巴士路线图片
export function GetRouteImage() {
    return http.get(`/apibactroban-bus/route`).then(res => res.data)
}